package cn.hzking.gjmall.utils;

import android.support.v4.widget.SwipeRefreshLayout;

/**
 * Created by Administrator on 2018/1/29.
 */

public class SwipeRefreshLayoutUtils {

    public static final SwipeRefreshLayout initRefreshLayout(SwipeRefreshLayout swipeRefreshLayout){
        swipeRefreshLayout.setColorSchemeResources(
                android.R.color.holo_blue_bright,
                android.R.color.holo_orange_light,
                android.R.color.holo_red_light
        );
        swipeRefreshLayout.setProgressViewOffset(true, 80, 150);

        return swipeRefreshLayout;
    }
}
